package com.onejson.ojmall.model.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 用户登录日志对象
 *
 * @author wxx
 */
@Data
public class SLoginLogVO {

    private static final long serialVersionUID = 1L;

    @TableId(value = "login_log_id")
    @Schema(description = "主键")
    private String loginLogId;

    @Schema(description = "用户id")
    private Integer userId;

    @Schema(description = "用户类型")
    private Integer userType;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "用户ip")
    private String loginIp;

    @Schema(description = "用户ip地区")
    private String loginIpRegion;

    @Schema(description = "user-agent信息")
    private String userAgent;

    @Schema(description = "登录结果：0成功 1失败 2 退出")
    private Integer loginResult;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


}

